// import service from '../util/service.js'
import Axios from 'axios'


export function Login(username, password) {
    // Qs.stringify({ username }, { username })
    var params = { "username": username, "password": password };
    return new Promise((password, username) => {
        Axios({
            url: 'http://121.196.57.23:8080/user/register ',
            method: 'POST',
            data: JSON.stringify(params),
            dataType: "json",
            headers: { 'Content-Type': 'application/json' },
        }).then((ok) => {
            (
                res => this.list = res.data
            )
        })
    })
}